-- At this example we will show function declaration and more interesting structures

function incrementar()
    return valorAtual + 1
end

valorAtual = 0
i = 0
while i<10 do
	valorAtual = incrementar()
    i = i + 1
end